package com.hdax.dm.feign.order;

import com.hdax.dm.entity.order.DmOrderLinkUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("dm-order-provider")
public interface DmOrderLinkUserFeign {

    /**
     * 添加订单联系人
     * @param dmOrderLinkUser
     * @return
     */
    @PostMapping(path = "/dmOrderLinkUser/addOrderLinkUser")
    int addOrderLinkUser(@RequestBody DmOrderLinkUser dmOrderLinkUser);

    /**
     * 删除订单联系人
     * @param orderNo
     * @return
     */
    @PostMapping(path = "/dmOrderLinkUser/deleteOrderLinkUser")
    int deleteOrderLinkUser(@RequestParam("orderNo") String orderNo);
}
